package com.hj.mapper;

import com.hj.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UserMapper {

    //查询所有用户信息
    public List<User> findAll();

    //根据ID查询用户信息
    public User findUserById(Integer id);
}
